import request from '@/utils/request'

// 查询定期存单列表
export function listQmcyCustDqcd(query) {
  return request({
    url: '/buss/qmcyCustDqcd/list',
    method: 'get',
    params: query
  })
}

// 查询定期存单详细
export function getQmcyCustDqcd(tdTdAcctNo) {
  return request({
    url: '/buss/qmcyCustDqcd/' + tdTdAcctNo,
    method: 'get'
  })
}

// 新增定期存单
export function addQmcyCustDqcd(data) {
  return request({
    url: '/buss/qmcyCustDqcd',
    method: 'post',
    data: data
  })
}

// 修改定期存单
export function updateQmcyCustDqcd(data) {
  return request({
    url: '/buss/qmcyCustDqcd',
    method: 'put',
    data: data
  })
}

// 删除定期存单
export function delQmcyCustDqcd(tdTdAcctNo) {
  return request({
    url: '/buss/qmcyCustDqcd/' + tdTdAcctNo,
    method: 'delete'
  })
}
